/**
 * Program  : XUIHelper.java
 * Author   : long
 * Create   : 2015年12月28日 上午10:24:05
 *
 * Copyright 2015 by Embedded Internet Solutions Inc.,
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Embedded Internet Solutions Inc.("Confidential Information").  
 * You shall not disclose such Confidential Information and shall 
 * use it only in accordance with the terms of the license agreement 
 * you entered into with Embedded Internet Solutions Inc.
 *
 */
	
package cn.broadin.app.hotel.util;

import cn.broadin.app.hotel.FireActivity;
import cn.broadin.app.hotel.HomeActivity;
import cn.broadin.app.hotel.IntroActivity;
import cn.broadin.app.hotel.MainActivity;
import cn.broadin.app.hotel.PhotoActivity;
import cn.broadin.app.hotel.SettingsActivity;
import cn.broadin.app.hotel.ShowUiVersionActivity;
import cn.broadin.app.hotel.setup.EvacuationMapActivity;
import cn.broadin.app.hotel.setup.InitActivity;
import cn.broadin.app.hotel.setup.PasswordActivity;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;

/**
 * 
 * 
 * @author  long
 * @version  1.0.0
 * @date 2015年12月28日上午10:24:05
 */
public class XUIHelper {

	public static void openMainActivity(Activity activity){
		Intent intent = new Intent(activity, HomeActivity.class);
		activity.startActivity(intent);
	}
	
	public static void openIntroActivity(Activity activity, String url){
		Intent intent = new Intent(activity, IntroActivity.class);
		intent.putExtra("url", url);
		activity.startActivity(intent);
	}
	
	public static void openSettingsActivity(Activity activity){
		Intent intent = new Intent(activity, SettingsActivity.class);
		activity.startActivity(intent);
	}
	
	public static void openPhotoActivity(Activity activity, String url){
		XLog.i("url.openPhotoActivity--DYH: " + url);
		Intent intent = new Intent(activity, PhotoActivity.class);
		intent.putExtra("image_url", url);
		activity.startActivity(intent);
	}
	
	public static void openFireActivity(Activity activity){
		Intent intent = new Intent(activity, FireActivity.class);
		activity.startActivity(intent);
	}
	
	public static void openInitActivity(Activity activity){
		Intent intent = new Intent(activity, InitActivity.class);
		activity.startActivity(intent);
	}
	
	public static void openEvacuationMapActivity(Activity activity){
		Intent intent = new Intent(activity, EvacuationMapActivity.class);
		activity.startActivity(intent);
	}
	
	public static void openPasswordActivity(Activity activity){
		Intent intent = new Intent(activity, PasswordActivity.class);
		activity.startActivity(intent);
	}
	
	
	
	
}
